﻿
namespace ZSW.Framework.Sync
{
    public class ZSWF_Object : object
    {
        public delegate void ZSWMethod();

        #region IZSWObject
        public void Dispose()
        {
            Destroy();
        }
        #endregion IZSWObject

        protected virtual void Destroy()
        {
        }

        public static void Synchronize(ZSWMethod method)
        {
            if (ZSWF_SyncHandler.Instance != null)
            {
                ZSWF_SyncHandler.Instance.Synchronize(method);
            }
        }

        protected void Invoke(string method, object param = null)
        {
            // todo
        }
    }
}